#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTimer>
#include <QTime>
#include <QElapsedTimer>

QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void on_btnStart_clicked();

    void  HandelTimeout();

    void on_btnStop_clicked();

    void ShowEplResult();

    void on_btnOneShot_clicked();

    void HandelOneshoot();

private:
    Ui::Widget *ui;
    QTimer* m_timer;
    QElapsedTimer* m_elapTimer;
};
#endif // WIDGET_H
